package com.hyt.it.ogt.kq.service.bm.feign.cj;

import com.hyt.common.apiInfor.ApiResponse;
import com.hyt.it.ogt.kq.service.bm.feign.cj.model.ApiExamPublishInfo;
import com.hyt.it.ogt.kq.service.bm.model.dto.ApiExamPublishInfoDTO;
import com.hyt.loginfo.config.OAuth2FeignRequestConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "it-ogt-kh", fallbackFactory = CjClientHystrix.class, configuration = OAuth2FeignRequestConfig.class)
public interface CjClient {

    /**
     * 获取考生发布考试信息
     *
     * @param apiExamPublishInfos 请求对象
     * @return
     */
    @PostMapping("/exam/publish/info/getApiExamPublishInfoVos")
    ApiResponse<List<ApiExamPublishInfoDTO>> getExamPublishInfoVos(@RequestBody List<ApiExamPublishInfo> apiExamPublishInfos);
}
